<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@page import="locations.model.*"%>
<div>
	<div>
		<ul class="list-actions">
			<li class="list-action-new"><s:url id="url"
					action="newInstitution"></s:url> <s:a href="%{url}"><s:property value="getText('institucion.nuevo')" /></s:a></li>
		</ul>
	</div>

	<table class="admin-table">
		<tr>
			<th><s:property value="getText('global.nombre')" /></th>
			<th><s:property value="getText('global.mail')" /></th>
			<th><s:property value="getText('global.telefono')" /></th>
			<th><s:property value="getText('global.acciones')" /></th>
		</tr>
		<s:iterator value="institution" status="row">
				<s:if test="#row.odd == true">
					<tr class="odd">
				</s:if>
				<s:else>
					<tr class="even">
				</s:else>
				<td><s:property value="name" /></td>
				<td><s:property value="email" /></td>
				<td><s:property value="phoneNumbers" /></td>
				<td class="list-actions-td">
					<ul class="object-actions">
						<li class="object-action-view"><s:url id="url"
								action="editInstitution">
								<s:param name="id" value="id"></s:param>

							</s:url> <s:a href="%{url}"><s:property value="getText('accion.ver')" /></s:a></li>
						<li class="object-action-edit"><s:url id="url"
								action="editInstitution">
								<s:param name="id" value="id"></s:param>
							</s:url> <s:a href="%{url}"><s:property value="getText('accion.modificar')" /></s:a></li>
						<li class="object-action-delete"><s:url id="url"
								action="deleteInstitution">
								<s:param name="id" value="id"></s:param>
							</s:url> <s:a href="%{url}"
								onclick="return confirm('Desea ....?')"><s:property value="getText('accion.eliminar')" /></s:a>
						</li>
					</ul>
				</td>
		</s:iterator>
	</table>
</div>